
#include <Rectangle.h>

Rectangle::Rectangle(int length, int width):
	m_length(length),m_width(width)
{
}
void Rectangle::setLength(int length)
{ 
	m_length = length;
}
void Rectangle::setWidth(int width)
{
	m_width = width;
}
int Rectangle::getPerimeter() const
{
	return (m_length+m_width)*2;
}
int Rectangle::getArea() const
{
	return m_length*m_width;
}
